@layout("/common/_curd/_container.html"){

	<form data-url="${basePath}/${code}/update" method="post" class="form-horizontal" role="form">
		<!-- 表单 -->
		@ var _table="sn_store";
		@ var _key="id";
		@ var _col=[
@			  {name:"", index:"id", type:"hidden",newline:true,length:8,required:"required"},
		@			  {name:"库存流水号", index:"bianhao",disabled:"disabled", type:"text",newline:true,length:8,required:"required"},
		@			  {name:"入库数量", index:"in_num", type:"text",newline:true,length:8},
		@			  {name:"出库数量", index:"out_num", type:"text",newline:true,length:8},
		@			  {name:"供应商", index:"s_id", type:"hidden",newline:true,length:8},
		@			  {name:"供应商", index:"s_name", type:"text",newline:true,length:8},
		@			  {name:"商品", index:"g_id", type:"hidden",newline:true,length:8},
		@			  {name:"商品", index:"g_name", type:"text",newline:true,length:8},
		@			  {name:"单价", index:"g_price", type:"text",newline:true,length:8},
		@			  {name:"订单号", index:"order_id",disabled:"disabled", type:"text",newline:true,length:8}
		@		   ];
		@ include("/common/_curd/_edit.html", {"col":_col, "table":_table, "key":_key}){}
		
		<!-- 按钮 -->
		@ include("/common/_curd/_btn.html", {btn_save:"修改", btn_close:"关闭"}) {}
	</form>

<script>
	$("#_g_name").on("click",function () {
		var index = layer.open({
			type: 2,
			title: '商品选择',
			area: ['100%', '100%'],
			maxmin: true,
			shadeClose: true, //点击遮罩关闭
			content: '/snGoods/choose'
		})
	})
	$("#_s_name").on("click",function () {
		var index = layer.open({
			type: 2,
			title: '选择供应商',
			area: ['100%', '100%'],
			maxmin: true,
			shadeClose: true, //点击遮罩关闭
			content: '/snSupplier/choose'
		})
	})
</script>

@}